<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="lib/vue.js"></script>
</head>
<body>

<div id="app">
    <com1 :prentmsg="msg"></com1>
</div>


<script>
    var vm = new Vue({
      el:"#app",
      data:{
        msg:"123---父组件的数据"
      },
      methods:{},
      components:{
        com1:{
          props:["prentmsg"],
          template:"<h1>这是私有组件{{prentmsg}}</h1>"
        }
      }
    })
</script>
</body>
</html>